package com.dongdong.result;

public enum ResultEnum {

    USERNAME_AND_PASSWORD_NOT_NULL_CODE("1","用户名或密码不能为空"),

    USERNAME_AND_PASSWORD_ERROR_CODE("2","用户名或密码错误"),

    LOGIN_SUCCESS_CODE("3","登录成功"),
    SUCCESS("4","操作成功"),
    TOKEN_FAIL("5","TOKEN无效"),
    FAIL("6","操作失败");
    private String code;
    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
